import { getPersons } from "./data";
import "./style.css"
import wpImg from './assets/images/webpack.jpg'

let h1 = document.createElement('h1')
h1.innerText = '人员列表'
let img = document.createElement('img')
img.src = wpImg
const persons = getPersons()
let ul = document.createElement('ul')
persons.forEach(item => {
	let li = document.createElement('li')
	li.innerText = item
	ul.appendChild(li)
})
document.body.appendChild(ul)
document.body.prepend(img)
document.body.prepend(h1)
